package org.asiainfo.im.server.config.properties;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.cloud.context.config.annotation.RefreshScope;

/**
 * socket-io配置
 *
 * @author dotor-ww
 */
@RefreshScope
@ConfigurationProperties(prefix = "socket.io")
@Data
public class SocketIOProperties {

    /**
     * socketio地址
     */
    private String host;

    /**
     * socketio端口
     */
    private Integer port;

    /**
     * socket连接数大小
     */
    private Integer bossCount;

    /**
     * socketio工作线程数
     */
    private Integer workCount;

    /**
     * 允许用户请求
     */
    private Boolean allowCustomRequests;

    /**
     * 握手超时时间
     */
    private Integer upgradeTimeout;

    /**
     * ping超时时间
     */
    private Integer pingTimeout;

    /**
     * ping间隔时间
     */
    private Integer pingInterval;

    /**
     * 命名空间
     */
    private String[] namespaces;
}
